package routers

import (
	"beegodemo02/controllers"
	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/news", &controllers.NewsController{})
	beego.Router("/news/add", &controllers.NewsController{}, "get:AddNews")
	beego.Router("/news/doAdd", &controllers.NewsController{}, "post:DoAddNews")

	beego.Router("/user/add", &controllers.UserController{}, "post:AddUser")

}
